#pragma once

#include "oatpp/web/server/HttpRequestHandler.hpp"

#define O_UNUSED(x) (void)x;

// 自定义请求处理, 重写 HTTP 请求处理 
class Handler: public oatpp::web::server::HttpRequestHandler {
  public:
    // 处理传入的请求, 返回响应
    std::shared_ptr<OutgoingResponse> handle(
      const std::shared_ptr<IncomingRequest>& request) override {
        O_UNUSED(request);
        return ResponseFactory::createResponse(Status::CODE_200, "Hello World");
    }
};